class PointRecordBean {
  bool success;
  String message;
  int code;
  List<Result> result;
  int timestamp;

  PointRecordBean(
      {this.success, this.message, this.code, this.result, this.timestamp});

  PointRecordBean.fromJson(Map<String, dynamic> json) {
    success = json['success'];
    message = json['message'];
    code = json['code'];
    if (json['result'] != null) {
      result = new List<Result>();
      json['result'].forEach((v) {
        result.add(new Result.fromJson(v));
      });
    }
    timestamp = json['timestamp'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['success'] = this.success;
    data['message'] = this.message;
    data['code'] = this.code;
    if (this.result != null) {
      data['result'] = this.result.map((v) => v.toJson()).toList();
    }
    data['timestamp'] = this.timestamp;
    return data;
  }
}

class Result {
  var id;
  var lat;
  var lon;
  String clockInNumber;
  String clockTime;
  var checkId;
  var areaId;
  String areaName;
  String areaCode;
  var clocking;
  String clockingStr;
  var isDone;
  var doneTime;
  String isDoneStr;

  Result(
      {this.id,
        this.lat,
        this.lon,
        this.clockInNumber,
        this.clockTime,
        this.checkId,
        this.areaId,
        this.areaName,
        this.areaCode,
        this.clocking,
        this.clockingStr,
        this.isDone,
        this.doneTime,
        this.isDoneStr});

  Result.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    lat = json['lat'];
    lon = json['lon'];
    clockInNumber = json['clockInNumber'];
    clockTime = json['clockTime'];
    checkId = json['checkId'];
    areaId = json['areaId'];
    areaName = json['areaName'];
    areaCode = json['areaCode'];
    clocking = json['clocking'];
    clockingStr = json['clockingStr'];
    isDone = json['isDone'];
    doneTime = json['doneTime'];
    isDoneStr = json['isDoneStr'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['lat'] = this.lat;
    data['lon'] = this.lon;
    data['clockInNumber'] = this.clockInNumber;
    data['clockTime'] = this.clockTime;
    data['checkId'] = this.checkId;
    data['areaId'] = this.areaId;
    data['areaName'] = this.areaName;
    data['areaCode'] = this.areaCode;
    data['clocking'] = this.clocking;
    data['clockingStr'] = this.clockingStr;
    data['isDone'] = this.isDone;
    data['doneTime'] = this.doneTime;
    data['isDoneStr'] = this.isDoneStr;
    return data;
  }
}
